package cn.luischen.aspect.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 1r
 */
@Service
@Slf4j
public class SomeService {

    @Autowired
    private SomeService someSelf;
    @MyMonitor
    public void hello(String someParam) {
        log.info("---SomeService: hello invoked, param: {}---", someParam);
        test();
         // someSelf.test();
    }

    @MyMonitor
    public void test() {
        System.out.println(this.getClass());
        log.info("---SomeService: test invoked---");
    }
}